import $service from '../../../../service.js';
Page({
  data: {
    iconListData: [{
        'icon_img': '/static/images/icon_drug_order.png',
        'icon_name': '药品订单',
        'icon_id': '1'
      },
      {
        'icon_img': '/static/images/icon_inquiry_order.png',
        'icon_name': '问诊订单',
        'icon_id': '2'
      },
      {
        'icon_img': '/static/images/icon_reacd.png',
        'icon_name': '交易记录',
        'icon_id': '3'
      }
    ]
  },
  gotopage(e) {
    let {id} = e.currentTarget.dataset
    let url = ''
    switch (id) {
      case '1':
        url = '/pages/prescription_flow/order_list/order_list'
        break;
      case '2':
        url = '/pages/user_side/personal/personal_order_list/inquiry_order_list/inquiry_order_list'
        break;
      case '3':
        url = '/pages/user_side/personal/personal_order_list/transaction_record/transaction_record'
        break;    
      default:
        break;
    }
    $service.openPage(url)
  }
})